This error occurs when using the EXECUTE statement. A valid stored query (view or procedure) is needed after the EXECUTE statement.